<style type="text/css">
    .card {
        float:left;
        width: 50%;
    }
    .name {
        width: 100%;
    }
    #tdaffic {
        clear:both;
    }
    .row {
        display: table-row;
    }
    .traffic{
        border: 1px solid black;
        border-collapse: collapse;
        width: 98%;
    }
    .traffic thead {
        font-weight: bold;
    }
    .traffic td {
        border: 1px solid black;
        padding: 2px 5px;
        text-align: center;
    }
</style>
<div>
    <div> <h2>Контрагенты</h2>    </div>
    <?php
        if ($cagent)
            foreach($cagent as $agent) 
            {
    ?>
            <p>
                <?= $agent->name ?>, тел:  <?= $agent->phone ?>
            </p>
    <?php            
            }
    ?>
</div>